<template>
<div>
  <!-- <el-input
    v-model.trim="form.money"
    @blur="inputMoney($event, 'money')"
  ></el-input> -->
  <moneyInput v-model="form.money"></moneyInput>
  <button @click="add">++++</button>
</div>

</template>
<script>
import getInputValue from '@/common/js/money'
import moneyInput from '@/components/moneyInput'
export default {
  data() {
    return {
      form: {
        money: 10000,
      },
    };
  },
  components:{
    moneyInput
  },
  methods: {
    inputMoney(el, name) {
      this.form[name] = getInputValue(el);
    },
    add(){
      this.form.money++
    }
  },
};
</script>